import request from './request'
import {passwordHash} from '../utilities/crypto'
import {app} from '../utilities/app'
// 支付信息列表
export function query ({currentPage = 1, perPage = 10, institutionNo} = {}) {
  return request({
    url: '/console/mcht/queryPayInfo.do',
    method: 'POST',
    body: {currentPage, perPage, institutionNo}
  })
}
// 新建支付信息
export function create ({institutionNo, payMchtId, payKey}) {
  return request({
    url: '/console/mcht/insertPayInfo.do',
    method: 'POST',
    body: {institutionNo, payMchtId, payKey}
  })
}
// 修改模块
export function edit ({id,institutionNo, payMchtId, payKey}) {
  return request({
    url: '/console/mcht/updatePayInfo.do',
    method: 'POST',
    body: {id,institutionNo, payMchtId, payKey}
  })
}
// 删除模块
export function del ({id,institutionNo}) {
  return request({
    url: '/console/mcht/deletePayInfo.do',
    method: 'POST',
    body: {id,institutionNo}
  })
}
// 改变状态
export function change ({id,institutionNo,status}) {
  return request({
    url: '/console/mcht/updatePayInfoStatus.do',
    method: 'POST',
    body: {id,institutionNo,status}
  })
}